﻿///////////////////////////////////////////////////////////////
// This is generated code. 
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 4.2
// Code is generated on: 
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Collections;
using System.Data;
using SD.LLBLGen.Pro.ORMSupportClasses;

namespace VNet.VisiSuite.VisiBoard.Dal.DatabaseSpecific
{
	/// <summary>Singleton implementation of the PersistenceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved.</summary>
	/// <remarks>It uses a single instance of an internal class. The access isn't marked with locks as the PersistenceInfoProviderBase class is threadsafe.</remarks>
	internal static class PersistenceInfoProviderSingleton
	{
		#region Class Member Declarations
		private static readonly IPersistenceInfoProvider _providerInstance = new PersistenceInfoProviderCore();
		#endregion

		/// <summary>Dummy static constructor to make sure threadsafe initialization is performed.</summary>
		static PersistenceInfoProviderSingleton()
		{
		}

		/// <summary>Gets the singleton instance of the PersistenceInfoProviderCore</summary>
		/// <returns>Instance of the PersistenceInfoProvider.</returns>
		public static IPersistenceInfoProvider GetInstance()
		{
			return _providerInstance;
		}
	}

	/// <summary>Actual implementation of the PersistenceInfoProvider. Used by singleton wrapper.</summary>
	internal class PersistenceInfoProviderCore : PersistenceInfoProviderBase
	{
		/// <summary>Initializes a new instance of the <see cref="PersistenceInfoProviderCore"/> class.</summary>
		internal PersistenceInfoProviderCore()
		{
			Init();
		}

		/// <summary>Method which initializes the internal datastores with the structure of hierarchical types.</summary>
		private void Init()
		{
			this.InitClass(25);
			InitAlarmSettingEntityMappings();
			InitAreaEntityMappings();
			InitAreaShiftEntityMappings();
			InitBraiderProductEntityMappings();
			InitCellEntityMappings();
			InitCellAlarmSettingEntityMappings();
			InitCellShiftEntityMappings();
			InitCellStatusEntityMappings();
			InitDatabaseVersionEntityMappings();
			InitFractionalInchEntityMappings();
			InitHoseSpecEntityMappings();
			InitLaunchApplicationEntityMappings();
			InitOperationEntityMappings();
			InitOperatorEntityMappings();
			InitOperatorAuthEntityMappings();
			InitPlantEntityMappings();
			InitProductEntityMappings();
			InitProductionHistoryEntityMappings();
			InitProductionHistoryDowntimeEventEntityMappings();
			InitProductionHistoryUndoBufferEntityMappings();
			InitProductionPlanEntityMappings();
			InitProductOperationTimeEntityMappings();
			InitReasonCodeEntityMappings();
			InitRollupDefinitionEntityMappings();
			InitTableDataChangeEntityMappings();
		}

		/// <summary>Inits AlarmSettingEntity's mappings</summary>
		private void InitAlarmSettingEntityMappings()
		{
			this.AddElementMapping("AlarmSettingEntity", @"VisiBoard", @"dbo", "AlarmSetting", 9, 0);
			this.AddElementFieldMapping("AlarmSettingEntity", "AlarmSettingId", "AlarmSettingID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("AlarmSettingEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("AlarmSettingEntity", "Color", "Color", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("AlarmSettingEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("AlarmSettingEntity", "FontColor", "FontColor", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("AlarmSettingEntity", "MinPercentage100Bad", "MinPercentage100Bad", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 5);
			this.AddElementFieldMapping("AlarmSettingEntity", "MinPercentage100Good", "MinPercentage100Good", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 6);
			this.AddElementFieldMapping("AlarmSettingEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 7);
			this.AddElementFieldMapping("AlarmSettingEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 8);
		}

		/// <summary>Inits AreaEntity's mappings</summary>
		private void InitAreaEntityMappings()
		{
			this.AddElementMapping("AreaEntity", @"VisiBoard", @"dbo", "Area", 18, 0);
			this.AddElementFieldMapping("AreaEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("AreaEntity", "AreaName", "AreaName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 1);
			this.AddElementFieldMapping("AreaEntity", "CloseWorkOrderReasonCodeId", "CloseWorkOrderReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("AreaEntity", "ContinuousProcess", "ContinuousProcess", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("AreaEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("AreaEntity", "GoodReasonCodeId", "GoodReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("AreaEntity", "MonthStartDay", "MonthStartDay", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 6);
			this.AddElementFieldMapping("AreaEntity", "NoWorkOrdersReasonCodeId", "NoWorkOrdersReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("AreaEntity", "PlannedReasonCodeId", "PlannedReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("AreaEntity", "PlantId", "PlantID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("AreaEntity", "ProductionMeterLabelFreq", "ProductionMeterLabelFreq", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 10);
			this.AddElementFieldMapping("AreaEntity", "ProductionMeterWidth", "ProductionMeterWidth", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 11);
			this.AddElementFieldMapping("AreaEntity", "ReworkReasonCodeId", "ReworkReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 12);
			this.AddElementFieldMapping("AreaEntity", "ScrapReasonCodeId", "ScrapReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 13);
			this.AddElementFieldMapping("AreaEntity", "ShiftStartReasonCodeId", "ShiftStartReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 14);
			this.AddElementFieldMapping("AreaEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 15);
			this.AddElementFieldMapping("AreaEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 16);
			this.AddElementFieldMapping("AreaEntity", "WeekStartDay", "WeekStartDay", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 17);
		}

		/// <summary>Inits AreaShiftEntity's mappings</summary>
		private void InitAreaShiftEntityMappings()
		{
			this.AddElementMapping("AreaShiftEntity", @"VisiBoard", @"dbo", "AreaShift", 9, 0);
			this.AddElementFieldMapping("AreaShiftEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("AreaShiftEntity", "AreaShiftId", "AreaShiftID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("AreaShiftEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("AreaShiftEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("AreaShiftEntity", "EndTime", "EndTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("AreaShiftEntity", "Hidden", "Hidden", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 5);
			this.AddElementFieldMapping("AreaShiftEntity", "StartTime", "StartTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
			this.AddElementFieldMapping("AreaShiftEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 7);
			this.AddElementFieldMapping("AreaShiftEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 8);
		}

		/// <summary>Inits BraiderProductEntity's mappings</summary>
		private void InitBraiderProductEntityMappings()
		{
			this.AddElementMapping("BraiderProductEntity", @"VisiBoard", @"dbo", "BraiderProduct", 14, 0);
			this.AddElementFieldMapping("BraiderProductEntity", "BraiderNumber", "BraiderNumber", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 0);
			this.AddElementFieldMapping("BraiderProductEntity", "BraiderProductId", "BraiderProductID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("BraiderProductEntity", "BraiderType", "BraiderType", false, "NVarChar", 5, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("BraiderProductEntity", "CarrierCount", "CarrierCount", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 3);
			this.AddElementFieldMapping("BraiderProductEntity", "DeckCount", "DeckCount", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 4);
			this.AddElementFieldMapping("BraiderProductEntity", "FeetPerMinute", "FeetPerMinute", false, "Decimal", 0, 8, 2, false, "", null, typeof(System.Decimal), 5);
			this.AddElementFieldMapping("BraiderProductEntity", "HoseCount", "HoseCount", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 6);
			this.AddElementFieldMapping("BraiderProductEntity", "HoseSize", "HoseSize", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 7);
			this.AddElementFieldMapping("BraiderProductEntity", "HoseSpec", "HoseSpec", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 8);
			this.AddElementFieldMapping("BraiderProductEntity", "OperatorId", "OperatorID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("BraiderProductEntity", "ServerId", "ServerID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("BraiderProductEntity", "Split", "Split", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 11);
			this.AddElementFieldMapping("BraiderProductEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 12);
			this.AddElementFieldMapping("BraiderProductEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 13);
		}

		/// <summary>Inits CellEntity's mappings</summary>
		private void InitCellEntityMappings()
		{
			this.AddElementMapping("CellEntity", @"VisiBoard", @"dbo", "Cell", 8, 0);
			this.AddElementFieldMapping("CellEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("CellEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("CellEntity", "CellName", "CellName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("CellEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("CellEntity", "Operators", "Operators", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 4);
			this.AddElementFieldMapping("CellEntity", "Password", "Password", false, "NVarChar", 32, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("CellEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 6);
			this.AddElementFieldMapping("CellEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 7);
		}

		/// <summary>Inits CellAlarmSettingEntity's mappings</summary>
		private void InitCellAlarmSettingEntityMappings()
		{
			this.AddElementMapping("CellAlarmSettingEntity", @"VisiBoard", @"dbo", "CellAlarmSetting", 9, 0);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "CellAlarmSettingId", "CellAlarmSettingID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "Color", "Color", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "FontColor", "FontColor", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "MinPercentage100Bad", "MinPercentage100Bad", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 5);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "MinPercentage100Good", "MinPercentage100Good", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 6);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 7);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 8);
		}

		/// <summary>Inits CellShiftEntity's mappings</summary>
		private void InitCellShiftEntityMappings()
		{
			this.AddElementMapping("CellShiftEntity", @"VisiBoard", @"dbo", "CellShift", 8, 0);
			this.AddElementFieldMapping("CellShiftEntity", "AreaShiftId", "AreaShiftID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("CellShiftEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("CellShiftEntity", "CellShiftId", "CellShiftID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("CellShiftEntity", "EndTime", "EndTime", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("CellShiftEntity", "ServerId", "ServerID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("CellShiftEntity", "StartTime", "StartTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 5);
			this.AddElementFieldMapping("CellShiftEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 6);
			this.AddElementFieldMapping("CellShiftEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 7);
		}

		/// <summary>Inits CellStatusEntity's mappings</summary>
		private void InitCellStatusEntityMappings()
		{
			this.AddElementMapping("CellStatusEntity", @"VisiBoard", @"dbo", "CellStatus", 8, 0);
			this.AddElementFieldMapping("CellStatusEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("CellStatusEntity", "CellStatusId", "CellStatusID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("CellStatusEntity", "EventTime", "EventTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
			this.AddElementFieldMapping("CellStatusEntity", "Flags", "Flags", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("CellStatusEntity", "Offline", "Offline", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 4);
			this.AddElementFieldMapping("CellStatusEntity", "ReasonCodeId", "ReasonCodeID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("CellStatusEntity", "Status", "Status", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("CellStatusEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 7);
		}

		/// <summary>Inits DatabaseVersionEntity's mappings</summary>
		private void InitDatabaseVersionEntityMappings()
		{
			this.AddElementMapping("DatabaseVersionEntity", @"VisiBoard", @"dbo", "DatabaseVersion", 3, 0);
			this.AddElementFieldMapping("DatabaseVersionEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 0);
			this.AddElementFieldMapping("DatabaseVersionEntity", "DatabaseVersionId", "DatabaseVersionID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("DatabaseVersionEntity", "VersionNumber", "VersionNumber", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 2);
		}

		/// <summary>Inits FractionalInchEntity's mappings</summary>
		private void InitFractionalInchEntityMappings()
		{
			this.AddElementMapping("FractionalInchEntity", @"VisiBoard", @"dbo", "FractionalInches", 6, 0);
			this.AddElementFieldMapping("FractionalInchEntity", "Description", "Description", false, "NVarChar", 8, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("FractionalInchEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 1);
			this.AddElementFieldMapping("FractionalInchEntity", "FractionalInchesId", "FractionalInchesID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("FractionalInchEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 3);
			this.AddElementFieldMapping("FractionalInchEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 4);
			this.AddElementFieldMapping("FractionalInchEntity", "Value", "Value", false, "Decimal", 0, 8, 5, false, "", null, typeof(System.Decimal), 5);
		}

		/// <summary>Inits HoseSpecEntity's mappings</summary>
		private void InitHoseSpecEntityMappings()
		{
			this.AddElementMapping("HoseSpecEntity", @"VisiBoard", @"dbo", "HoseSpec", 9, 0);
			this.AddElementFieldMapping("HoseSpecEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 0);
			this.AddElementFieldMapping("HoseSpecEntity", "FtPerMin", "FtPerMin", false, "Decimal", 0, 8, 2, false, "", null, typeof(System.Decimal), 1);
			this.AddElementFieldMapping("HoseSpecEntity", "FtPerMinAlt", "FtPerMinAlt", true, "Decimal", 0, 8, 2, false, "", null, typeof(System.Decimal), 2);
			this.AddElementFieldMapping("HoseSpecEntity", "FtPerMinRb2", "FtPerMInRB2", true, "Decimal", 0, 8, 2, false, "", null, typeof(System.Decimal), 3);
			this.AddElementFieldMapping("HoseSpecEntity", "HoseSpecId", "HoseSpecID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("HoseSpecEntity", "Size", "Size", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("HoseSpecEntity", "Spec", "Spec", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 6);
			this.AddElementFieldMapping("HoseSpecEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 7);
			this.AddElementFieldMapping("HoseSpecEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 8);
		}

		/// <summary>Inits LaunchApplicationEntity's mappings</summary>
		private void InitLaunchApplicationEntityMappings()
		{
			this.AddElementMapping("LaunchApplicationEntity", @"VisiBoard", @"dbo", "LaunchApplication", 9, 0);
			this.AddElementFieldMapping("LaunchApplicationEntity", "Application", "Application", false, "NVarChar", 128, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("LaunchApplicationEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("LaunchApplicationEntity", "Arguments", "Arguments", true, "NVarChar", 128, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("LaunchApplicationEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("LaunchApplicationEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 4);
			this.AddElementFieldMapping("LaunchApplicationEntity", "LaunchApplicationId", "LaunchApplicationID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("LaunchApplicationEntity", "SortOrder", "SortOrder", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("LaunchApplicationEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 7);
			this.AddElementFieldMapping("LaunchApplicationEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 8);
		}

		/// <summary>Inits OperationEntity's mappings</summary>
		private void InitOperationEntityMappings()
		{
			this.AddElementMapping("OperationEntity", @"VisiBoard", @"dbo", "Operation", 4, 0);
			this.AddElementFieldMapping("OperationEntity", "Description", "Description", false, "NVarChar", 50, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("OperationEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 1);
			this.AddElementFieldMapping("OperationEntity", "OperationId", "OperationID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("OperationEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 3);
		}

		/// <summary>Inits OperatorEntity's mappings</summary>
		private void InitOperatorEntityMappings()
		{
			this.AddElementMapping("OperatorEntity", @"VisiBoard", @"dbo", "Operator", 8, 0);
			this.AddElementFieldMapping("OperatorEntity", "Active", "Active", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 0);
			this.AddElementFieldMapping("OperatorEntity", "EmployeeCode", "EmployeeCode", false, "NVarChar", 10, 0, 0, false, "", null, typeof(System.String), 1);
			this.AddElementFieldMapping("OperatorEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 2);
			this.AddElementFieldMapping("OperatorEntity", "FirstName", "FirstName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("OperatorEntity", "LastName", "LastName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("OperatorEntity", "OperatorId", "OperatorID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("OperatorEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 6);
			this.AddElementFieldMapping("OperatorEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 7);
		}

		/// <summary>Inits OperatorAuthEntity's mappings</summary>
		private void InitOperatorAuthEntityMappings()
		{
			this.AddElementMapping("OperatorAuthEntity", @"VisiBoard", @"dbo", "OperatorAuth", 3, 0);
			this.AddElementFieldMapping("OperatorAuthEntity", "OperationId", "OperationID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("OperatorAuthEntity", "OperatorAuthId", "OperatorAuthId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("OperatorAuthEntity", "OperatorId", "OperatorID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
		}

		/// <summary>Inits PlantEntity's mappings</summary>
		private void InitPlantEntityMappings()
		{
			this.AddElementMapping("PlantEntity", @"VisiBoard", @"dbo", "Plant", 6, 0);
			this.AddElementFieldMapping("PlantEntity", "DateFormat", "DateFormat", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("PlantEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 1);
			this.AddElementFieldMapping("PlantEntity", "PlantId", "PlantID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("PlantEntity", "PlantName", "PlantName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("PlantEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 4);
			this.AddElementFieldMapping("PlantEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 5);
		}

		/// <summary>Inits ProductEntity's mappings</summary>
		private void InitProductEntityMappings()
		{
			this.AddElementMapping("ProductEntity", @"VisiBoard", @"dbo", "Product", 7, 0);
			this.AddElementFieldMapping("ProductEntity", "Description", "Description", true, "NVarChar", 80, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("ProductEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 1);
			this.AddElementFieldMapping("ProductEntity", "ProductId", "ProductID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ProductEntity", "Revision", "Revision", true, "NVarChar", 10, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("ProductEntity", "Sku", "SKU", false, "NVarChar", 80, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("ProductEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 5);
			this.AddElementFieldMapping("ProductEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 6);
		}

		/// <summary>Inits ProductionHistoryEntity's mappings</summary>
		private void InitProductionHistoryEntityMappings()
		{
			this.AddElementMapping("ProductionHistoryEntity", @"VisiBoard", @"dbo", "ProductionHistory", 16, 0);
			this.AddElementFieldMapping("ProductionHistoryEntity", "BraiderProductId", "BraiderProductID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductionHistoryEntity", "CellShiftId", "CellShiftID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("ProductionHistoryEntity", "DowntimeAckTime", "DowntimeAckTime", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
			this.AddElementFieldMapping("ProductionHistoryEntity", "EndTime", "EndTime", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("ProductionHistoryEntity", "LastUpdated", "LastUpdated", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("ProductionHistoryEntity", "OperatorId", "OperatorID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("ProductionHistoryEntity", "Operators", "Operators", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 6);
			this.AddElementFieldMapping("ProductionHistoryEntity", "ProductionHistoryId", "ProductionHistoryID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("ProductionHistoryEntity", "ProductionPlanId", "ProductionPlanID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("ProductionHistoryEntity", "ReasonCodeId", "ReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("ProductionHistoryEntity", "ServerId", "ServerID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("ProductionHistoryEntity", "StartTime", "StartTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 11);
			this.AddElementFieldMapping("ProductionHistoryEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 12);
			this.AddElementFieldMapping("ProductionHistoryEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 13);
			this.AddElementFieldMapping("ProductionHistoryEntity", "VisiBoxKey", "VisiBoxKey", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 14);
			this.AddElementFieldMapping("ProductionHistoryEntity", "WorkContent", "WorkContent", true, "Decimal", 0, 10, 2, false, "", null, typeof(System.Decimal), 15);
		}

		/// <summary>Inits ProductionHistoryDowntimeEventEntity's mappings</summary>
		private void InitProductionHistoryDowntimeEventEntityMappings()
		{
			this.AddElementMapping("ProductionHistoryDowntimeEventEntity", @"VisiBoard", @"dbo", "ProductionHistoryDowntimeEvent", 9, 0);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "EventTime", "EventTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 0);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "LastUpdated", "LastUpdated", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "ProductionHistoryDowntimeEventId", "ProductionHistoryDowntimeEventID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "ProductionHistoryId", "ProductionHistoryID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "ReasonCodeId", "ReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "ServerId", "ServerID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 6);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 7);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "VisiBoxKey", "VisiBoxKey", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
		}

		/// <summary>Inits ProductionHistoryUndoBufferEntity's mappings</summary>
		private void InitProductionHistoryUndoBufferEntityMappings()
		{
			this.AddElementMapping("ProductionHistoryUndoBufferEntity", @"VisiBoard", @"dbo", "ProductionHistoryUndoBuffer", 14, 0);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "CellShiftId", "CellShiftID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "EndTime", "EndTime", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "LastSync", "LastSync", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "LastUpdated", "LastUpdated", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "Operators", "Operators", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 4);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "PartialPosting", "PartialPosting", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 5);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "ProductionHistoryId", "ProductionHistoryID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "ProductionHistoryUndoBufferId", "ProductionHistoryUndoBufferID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "ProductionPlanId", "ProductionPlanID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "ReasonCodeId", "ReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "ServerId", "ServerID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "StartTime", "StartTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 11);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 12);
			this.AddElementFieldMapping("ProductionHistoryUndoBufferEntity", "WorkContent", "WorkContent", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 13);
		}

		/// <summary>Inits ProductionPlanEntity's mappings</summary>
		private void InitProductionPlanEntityMappings()
		{
			this.AddElementMapping("ProductionPlanEntity", @"VisiBoard", @"dbo", "ProductionPlan", 16, 0);
			this.AddElementFieldMapping("ProductionPlanEntity", "Actual", "Actual", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductionPlanEntity", "ActualDate", "ActualDate", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("ProductionPlanEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ProductionPlanEntity", "Closed", "Closed", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("ProductionPlanEntity", "DueDate", "DueDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("ProductionPlanEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 5);
			this.AddElementFieldMapping("ProductionPlanEntity", "OperationId", "OperationID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("ProductionPlanEntity", "OperationPass", "OperationPass", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 7);
			this.AddElementFieldMapping("ProductionPlanEntity", "Planned", "Planned", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("ProductionPlanEntity", "ProductId", "ProductID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("ProductionPlanEntity", "ProductionPlanId", "ProductionPlanID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("ProductionPlanEntity", "SortOrder", "SortOrder", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 11);
			this.AddElementFieldMapping("ProductionPlanEntity", "StationId", "StationID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 12);
			this.AddElementFieldMapping("ProductionPlanEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 13);
			this.AddElementFieldMapping("ProductionPlanEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 14);
			this.AddElementFieldMapping("ProductionPlanEntity", "WorkOrder", "WorkOrder", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 15);
		}

		/// <summary>Inits ProductOperationTimeEntity's mappings</summary>
		private void InitProductOperationTimeEntityMappings()
		{
			this.AddElementMapping("ProductOperationTimeEntity", @"VisiBoard", @"dbo", "ProductOperationTime", 12, 0);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "CycleTime", "CycleTime", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 1);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "LoadUnloadTime", "LoadUnloadTime", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "OperationId", "OperationID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "OperationPass", "OperationPass", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 4);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "PartTime", "PartTime", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "ProductId", "ProductID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "ProductOperationTimeId", "ProductOperationTimeID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "Rate", "Rate", false, "Decimal", 0, 10, 2, false, "", null, typeof(System.Decimal), 8);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "SetupTime", "SetupTime", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 10);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 11);
		}

		/// <summary>Inits ReasonCodeEntity's mappings</summary>
		private void InitReasonCodeEntityMappings()
		{
			this.AddElementMapping("ReasonCodeEntity", @"VisiBoard", @"dbo", "ReasonCode", 19, 0);
			this.AddElementFieldMapping("ReasonCodeEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ReasonCodeEntity", "Category", "Category", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 1);
			this.AddElementFieldMapping("ReasonCodeEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("ReasonCodeEntity", "DisplayInDowntimeChart", "DisplayInDowntimeChart", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("ReasonCodeEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 4);
			this.AddElementFieldMapping("ReasonCodeEntity", "FlashDelay", "FlashDelay", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 5);
			this.AddElementFieldMapping("ReasonCodeEntity", "HideChildren", "HideChildren", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 6);
			this.AddElementFieldMapping("ReasonCodeEntity", "IgnoreInOeeCalc", "IgnoreInOeeCalc", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 7);
			this.AddElementFieldMapping("ReasonCodeEntity", "IgnoreInWaitingCalc", "IgnoreInWaitingCalc", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 8);
			this.AddElementFieldMapping("ReasonCodeEntity", "IgnoreVisiBoxEvents", "IgnoreVisiBoxEvents", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 9);
			this.AddElementFieldMapping("ReasonCodeEntity", "Level", "Level", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("ReasonCodeEntity", "LinkId", "LinkID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 11);
			this.AddElementFieldMapping("ReasonCodeEntity", "ParentId", "ParentID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 12);
			this.AddElementFieldMapping("ReasonCodeEntity", "ReasonCodeId", "ReasonCodeID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 13);
			this.AddElementFieldMapping("ReasonCodeEntity", "RollupDefinitionId", "RollupDefinitionID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 14);
			this.AddElementFieldMapping("ReasonCodeEntity", "Scrap", "Scrap", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 15);
			this.AddElementFieldMapping("ReasonCodeEntity", "ShopClockEvent", "ShopClockEvent", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 16);
			this.AddElementFieldMapping("ReasonCodeEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 17);
			this.AddElementFieldMapping("ReasonCodeEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 18);
		}

		/// <summary>Inits RollupDefinitionEntity's mappings</summary>
		private void InitRollupDefinitionEntityMappings()
		{
			this.AddElementMapping("RollupDefinitionEntity", @"VisiBoard", @"dbo", "RollupDefinition", 10, 0);
			this.AddElementFieldMapping("RollupDefinitionEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("RollupDefinitionEntity", "Color", "Color", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 1);
			this.AddElementFieldMapping("RollupDefinitionEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("RollupDefinitionEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("RollupDefinitionEntity", "FlashingTimeout", "FlashingTimeout", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("RollupDefinitionEntity", "FontColor", "FontColor", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("RollupDefinitionEntity", "RollupDefinitionId", "RollupDefinitionID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("RollupDefinitionEntity", "SortOrder", "SortOrder", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("RollupDefinitionEntity", "SyncStatus", "SyncStatus", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 8);
			this.AddElementFieldMapping("RollupDefinitionEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 9);
		}

		/// <summary>Inits TableDataChangeEntity's mappings</summary>
		private void InitTableDataChangeEntityMappings()
		{
			this.AddElementMapping("TableDataChangeEntity", @"VisiBoard", @"dbo", "TableDataChange", 6, 0);
			this.AddElementFieldMapping("TableDataChangeEntity", "AreaId", "AreaID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("TableDataChangeEntity", "CellId", "CellID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("TableDataChangeEntity", "LastChanged", "LastChanged", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
			this.AddElementFieldMapping("TableDataChangeEntity", "TableDataChangeId", "TableDataChangeID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("TableDataChangeEntity", "TableName", "TableName", false, "NVarChar", 30, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("TableDataChangeEntity", "TimeStamp", "TImeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 5);
		}

	}
}
